package com.zosean.sky.main;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2009</p>
 *
 * <p>Company: </p>
 *
 * @author sky
 * @version 1.0
 */
public class Log {
    /**
     * Whether debug mode
     */
    private static boolean debug = true;
    /**
     * Default construction method
     */
    public Log() {
    }
    /**
     * Print the string
     * @param strValue String
     */
    public static void println(String strValue)
    {
        if(strValue == null)
            if(debug)
                strValue = "";
        System.out.println(strValue);
    }
    /**
     * Print the boolean
     * @param bValue boolean boolean
     */
    public static void println(boolean bValue)
    {
        if(debug)
            System.out.println(String.valueOf(bValue));
    }
    /**
     * Print the integer
     * @param intValue int
     */
    public static void println(int intValue)
    {
        if(debug)
            System.out.println(String.valueOf(intValue));
    }
    /**
     * Set the debug mode
     */
    public void setDebug(boolean isBoolean)
    {
        this.debug = isBoolean;
    }
    /**
     * Get the debug mode
     */
     public boolean getDebug()
     {
         return this.debug;
     }
    }
